finding inverse of a matrix using lu decomposition method